package utils.json.data;

import java.util.HashMap;

import models.AbstractActivity;

public class ActivityJson extends AbstractJson {
	public ActivityJson(AbstractActivity activity) {
		if(activity.focus != null) {
			activity.focus.get();
			put("id", activity.id);
			put("title", activity.focus.title);
			put("time", activity.end.getTime());
		}
	}
}
